package com.cy.pj.sys.web.pojo;

public class TesResult {
    private Integer state = 1;
    private String message;
    private Object data;

    public TesResult(){}
    public TesResult(String message){
        this.message = message;
    }

    public TesResult(Object data) {
        this.data = data;
    }
    public TesResult(Throwable e){
        this(0,e.getMessage());
    }

    public TesResult(Integer state, String message) {
        this.state = state;
        this.message = message;
    }


    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
